﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace hoemwork
{

    public class Student //: Person, IEnumerable
    {
        public int id { get; set; }

        public int Age { get; set; }
        public string Name { get; set; }
        public bool IsFemale { get; set; }
        public DateTime Enroll { get; set; }
        public DayOfWeek? Oncall { get; set; }
        //public int Age { get; set; }
        //public int Score { get; set; }
        //public string name;
        //public List<Major> Majors { get; set; }
        //public Teacher Teacher { get; set; }

        //private static object[] students =
        // {

        //    new Student(){name="fg"},new Student(){name="hl"},
        //    new Student(){name="ls"},new Student(){name="hyl"},
        //};
        //public IEnumerator GetEnumerator()
        //{
        //    return new Enumerator(this);
        //}
        //public struct Enumerator : IEnumerator
        //{
        //    public  object _current;
        //    public int _index;
        //    public object Current => _current;
        //    public object[] _localStudents;
        //    public Enumerator(Student student)
        //    {
        //        _localStudents = Student.students;
        //        _index = 0;
        //        _current = _localStudents[_index];
        //    }
        //    public bool MoveNext()
        //    {
        //        _index++;
        //        if (_index>=_localStudents.Length)
        //        {
        //            return false;
        //        }
        //        _current = _localStudents[_index];
        //        return true;
        //    }

        //    public void Reset()
        //    {
        //        throw new System.NotImplementedException();
        //    }

     //   }


    }
}